package com.teamin.service;

import com.teamin.entity.WxGroupEntity;
import com.teamin.entity.WxUserEntity;
import com.teamin.web.exception.GlobalErrorInfoException;

public interface WxService {
	/**
	 *获取微信用户
	 */
	public WxUserEntity getWxUserEntity(String code, String encryptedData, String iv) throws GlobalErrorInfoException;


    String getGroupId(String encryptedData, String iv, Long userId) throws GlobalErrorInfoException;

    /**
	 *获取微信群
	 */
	WxGroupEntity decrypedWxGroupEntity(String code, String encryptedData, String iv,Long userId) throws GlobalErrorInfoException;

    Boolean existUnionId(String unionId);
}
